#include "enterPlayRecordMessageHandler.h"
#include "enterPlayRecordMessage.h"
#include "opResMessage.h"
#include "enterPlayRecordHandler.h"

void EnterPlayRecordMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
	EnterPlayRecordMessage* msg = (EnterPlayRecordMessage*)message;
	EnterPlayRecordHandler handle;
	handle(msg->getId(), msg->getDmId());
	OpResMessage resMsg(true, msg);
	resMsg.send(attachment);
}

MtpMessage* EnterPlayRecordMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
	return new EnterPlayRecordMessage(packet);
}
